package com.gistmap.dao;

import com.gistmap.bean.Activity;
import com.gistmap.dto.ActivityDto;
import jdk.nashorn.internal.ir.IdentNode;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/4/17.
 */
public interface ActivityDao {

    Integer save(Activity activity);

    void join(Map<String, Object> map);

    List<ActivityDto> showAct(Map<String, Object> map);

    void addCount(@Param("act_id")Integer id);

    List<Integer> getJoinInfo(@Param("uid")Integer uid);

    List<ActivityDto> showVisit(@Param("uid")Integer uid);

    List<ActivityDto> getJoinAct(@Param("uid")Integer uid);

    List<ActivityDto> allActs();

    Integer findId(@Param("title")String title);
}
